CC := gcc
RM := rm -f
CFLAGS := -lpthread -lcurses  -Iinclude -ldl -g -o

OBJ := chat
OBJS := ./source/chat.o ./source/chat_fun.o ./source/md5.o

.PHONY:clean
%.o : %.c
	$(CC) $< -c $(CFLAGS) $@

all : $(OBJS)
	$(CC) $^ $(CFLAGS) $(OBJ)

clean:
	$(RM) ./*.o ./source/*.o $(OBJ)

